package com.frcdi.qms.masterdata.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 变更历史对象 md_chang_history
 *
 * @author cell
 * @date 2024-01-16
 */
@ApiModel(value = "变更历史对象")
public class ChangHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private Long historyId;

    /** 主数据id */
    private Long masterDataId;

    /** 主数据类型 */
    @Excel(name = "主数据类型")
    private String masterDataType;

    /** 变更单id */
    @Excel(name = "变更单id")
    private String changNo;

    public Long getHistoryId() {
        return historyId;
    }

    public void setHistoryId(Long historyId) {
        this.historyId = historyId;
    }

    public Long getMasterDataId() {
        return masterDataId;
    }

    public void setMasterDataId(Long masterDataId) {
        this.masterDataId = masterDataId;
    }

    public String getMasterDataType() {
        return masterDataType;
    }

    public void setMasterDataType(String masterDataType) {
        this.masterDataType = masterDataType;
    }

    public String getChangNo() {
        return changNo;
    }

    public void setChangNo(String changNo) {
        this.changNo = changNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("historyId", getHistoryId())
            .append("masterdataId", getMasterDataId())
            .append("masterdataType", getMasterDataType())
            .append("changNo", getChangNo())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
